package com.kaikai.edu.service;

import com.kaikai.commonutils.R;
import com.kaikai.edu.entity.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kaikai.edu.entity.subject.OneSubject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author yujiankai
 * @since 2021-05-13
 */
public interface EduSubjectService extends IService<EduSubject> {

    void importSubjectData(MultipartFile file);

    List<OneSubject> getOneTwoSubject();

    /**
     * @param id
     * @return com.kaikai.commonutils.R
     * @Author yujiankai
     * @Description 根据id删除课程分类
     * @date 2022/1/26 15:20
     */
    R deleteSubjectById(String id);

    /**
     * @param subject
     * @return com.kaikai.commonutils.R
     * @Author yujiankai
     * @Description 更新课程信息
     * @date 2022/1/26 15:33
     */
    R updateSubject(EduSubject subject);

    /**
     * @param subject
     * @return com.kaikai.commonutils.R
     * @Author yujiankai
     * @Description 添加课程信息
     * @date 2022/1/26 15:33
     */
    R createSubject(EduSubject subject);
}
